package cn.edu.lingnan.tag;

import jakarta.servlet.jsp.JspException;
import jakarta.servlet.jsp.tagext.TagSupport;
import java.io.IOException;
//import javax.servlet.jsp.JspException;
//import javax.servlet.jsp.tagext.TagSupport;

public class TagExample2 extends TagSupport {
	private String name;
	public void setName(String name){
		this.name = name;
	}
	public String getName(){
		return this.name;
	}
	public int doStartTag() throws JspException {
		try {
			pageContext.getOut().print("Hello Hello "+name);
		} catch (IOException e) {
			e.printStackTrace();
		}		
		return SKIP_BODY;		
	}
	public int doEndTag(){
		return EVAL_PAGE;
	}	
}
